/**
 * Created by hms on 2020-09-14.
 */
import { ROAST_CONFIG } from '../config.js';

export default{
    getHospitalList:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/hospitallist',{ params : data});
    },
    editHospital:function(data){
        return axios.post(ROAST_CONFIG.API_URL+'/edithospital',qs.stringify(data),{
            headers: {'Content-Type': 'application/x-www-form-urlencoded'}
        });
    },
    getHospitalInfo:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/hospitalinfo',{
            params:data
        });
    },
    delHospital:function(data){
        return axios.get(ROAST_CONFIG.API_URL+'/delhospital',{
            params:data
        });
    }
}
